package com.hq.common.activeMQ.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.stereotype.Service;

import com.hq.common.activeMq.IActiveMqService;


@Service("activeMqService")
public class ActiveMqService implements IActiveMqService{
	
	@Autowired
	@Qualifier("jmsQueueTemplate")
	JmsTemplate jmsTemplate;
	
	@Override
	public void sendMsg(){
		jmsTemplate.convertAndSend("hellod! my love!");
	}
}
